// 各个组件的props类型
/**
 * @formParams 表单的初始化值
 * @formOpt 表单配置项
 * @id 特殊情况才用到 用以区分是哪个表单
 */
export type IFormP = {
  formParams?: {
    [key: string]: any;
  };
  formOpt: IPFormFormOpt;
  id?: string;
};
export type ISusP = {
  formType: "searchForm";
  superFormOpt?: ISusPSuperFormOpt;
} & IFormP;
export type ISupP = {
  formType: "pageForm";
  superFormOpt?: ISupPSuperFormOpt;
} & IFormP;
export type ISudP = {
  formType: "diologForm" | "drawForm";
  superFormOpt?: ISudPSuperFormOpt;
} & IFormP;
export type ISuP = ISusP | ISupP | ISudP;

export type IDiologP = {
  title: string;
  appendToBody?: boolean;
  compontWidth?: number;
};
export interface IDrawerP {
  title?: string;
  compontWidth?: number | string;
}
export type IFormItemP = {
  item: IFormItemPItem;
  modelValue: any;
  itemKey: string;
  id?: string;
};
export interface ISwiperP {
  cswiperOpt?: any;
}
export interface ITableP {
  tableOpt: ITablePTableOpt;
  id?: string;
}
export type ICommonP = { column: ITablePTableOptColumn; id?: string };
export interface IUploadP {
  item: IUploadPItem;
}
// export type IWangEditorP = {
//   bootListFn?: ((toolbarConfig: toolbarConfigType) => void)[];
// };
